Skip to content

CASSANALYTICS-146: Remove shutdownhooks in testing to prevent race on…#192

Open
jmckenzie-dev wants to merge 1 commit intoapache:trunkfrom
jmckenzie-dev:fix_shutdown_hook
Open

CASSANALYTICS-146: Remove shutdownhooks in testing to prevent race on…#192
jmckenzie-dev wants to merge 1 commit intoapache:trunkfrom
jmckenzie-dev:fix_shutdown_hook

Conversation

@jmckenzie-dev
Copy link
Copy Markdown
Contributor

… transaction log deletion

Patch by Josh McKenzie; reviewed by TBD for CASSANALYTICS-146

… transaction log deletion

Patch by Josh McKenzie; reviewed by TBD for CASSANALYTICS-146
Copy link
Copy Markdown
Contributor

@jyothsnakonisa jyothsnakonisa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good just few minor comments. Not sure if you need to add this to changes.txt

// and transaction log I/O races w/shutdowns from our tests here. Rather than get extra insult to injury if a
// test times out, we instead unregister the StorageService shutdown hooks; we don't much care about memtable
// content from a node getting flushed with unit tests that run ephemerally.
// If in the future we start to rely on stopping and starting C* nodes and the StorageService shutdown hooks
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you miss completing the comment?

}
catch (Throwable t)
{
logger.debug("Failed to remove shutdown hook for instance {}", i, t);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we make the log info level to view the log in the CI output when something goes wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants